package com.ruoyi.gcgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gcgl.mapper.SjProjectPeoplelineMapper;
import com.ruoyi.gcgl.domain.SjProjectPeopleline;
import com.ruoyi.gcgl.service.ISjProjectPeoplelineService;
import com.ruoyi.common.core.text.Convert;

/**
 * 项目成员工时Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-07
 */
@Service
public class SjProjectPeoplelineServiceImpl implements ISjProjectPeoplelineService 
{
    @Autowired
    private SjProjectPeoplelineMapper sjProjectPeoplelineMapper;

    /**
     * 查询项目成员工时
     * 
     * @param id 项目成员工时主键
     * @return 项目成员工时
     */
    @Override
    public SjProjectPeopleline selectSjProjectPeoplelineById(Long id)
    {
        return sjProjectPeoplelineMapper.selectSjProjectPeoplelineById(id);
    }

    /**
     * 查询项目成员工时列表
     * 
     * @param sjProjectPeopleline 项目成员工时
     * @return 项目成员工时
     */
    @Override
    public List<SjProjectPeopleline> selectSjProjectPeoplelineList(SjProjectPeopleline sjProjectPeopleline)
    {
        return sjProjectPeoplelineMapper.selectSjProjectPeoplelineList(sjProjectPeopleline);
    }

    /**
     * 新增项目成员工时
     * 
     * @param sjProjectPeopleline 项目成员工时
     * @return 结果
     */
    @Override
    public int insertSjProjectPeopleline(SjProjectPeopleline sjProjectPeopleline)
    {
        return sjProjectPeoplelineMapper.insertSjProjectPeopleline(sjProjectPeopleline);
    }

    /**
     * 修改项目成员工时
     * 
     * @param sjProjectPeopleline 项目成员工时
     * @return 结果
     */
    @Override
    public int updateSjProjectPeopleline(SjProjectPeopleline sjProjectPeopleline)
    {
        return sjProjectPeoplelineMapper.updateSjProjectPeopleline(sjProjectPeopleline);
    }

    /**
     * 批量删除项目成员工时
     * 
     * @param ids 需要删除的项目成员工时主键
     * @return 结果
     */
    @Override
    public int deleteSjProjectPeoplelineByIds(String ids)
    {
        return sjProjectPeoplelineMapper.deleteSjProjectPeoplelineByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除项目成员工时信息
     * 
     * @param id 项目成员工时主键
     * @return 结果
     */
    @Override
    public int deleteSjProjectPeoplelineById(Long id)
    {
        return sjProjectPeoplelineMapper.deleteSjProjectPeoplelineById(id);
    }
}
